// JavaScript Document
 function pageInfo(totalPage,curPage){
	 var pageHtml = "";
	 if(totalPage > 1 && curPage > 1){
		 pageHtml += "<span><a style=\"margin-left:initial;\" href=\"javascript:void(0);\" onclick=\"searchList(1)\"><<</a></span>";
		 pageHtml += "<span><a style=\"margin-left:initial;\" href=\"javascript:void(0);\" onclick=\"searchList("+parseInt(curPage-1)+")\"><</a></span>";
	 }
	 if(curPage < 5){
		 for(var i=1;i<=(totalPage-curPage>5?curPage+5:totalPage);i++){
			 if(i == curPage){
				 pageHtml += "<a href=\"javascript:void(0);\" style=\"background:#3c8dbc;color: #fff;\">"+i+"</a>";
			 }else{
				 pageHtml += "<a href=\"javascript:void(0);\" onclick=\"searchList("+i+")\">"+i+"</a>";
			 }
		 }
	 }else{
		 for(var i=curPage-5>0?curPage-5:1;i<=(totalPage-curPage>5?curPage+5:totalPage);i++){
			 if(i == curPage){
				 pageHtml += "<a href=\"javascript:void(0);\" style=\"background:#3c8dbc;color: #fff;\">"+i+"</a>";
			 }else{
				 pageHtml += "<a href=\"javascript:void(0);\" onclick=\"searchList("+i+")\">"+i+"</a>";
			 }
		 }
	 }
	 if(totalPage>1 && curPage<totalPage){
		 pageHtml += "<span><a style=\"margin-left:initial;\" href=\"javascript:void(0);\" onclick=\"searchList("+parseInt(curPage+1)+")\">></a></span>";
	 	 pageHtml += "<span><a style=\"margin-left:initial;\" href=\"javascript:void(0);\" onclick=\"searchList("+totalPage+")\">>></a></span>";
 	}
 	return pageHtml;
 }
 
 function gotoPage(totalPage){
	 if($("#toPageNo").val()==null || $("#toPageNo").val()==''){
		 alert("请输入需要跳转的页面！");
		 return false;
	 }
	 if(totalPage<$("#toPageNo").val()){
		 alert("请输入有效的页码！");
		 return false;
	 }
	 searchList($("#toPageNo").val());
 }

